package net.xdclass.feign;

import net.xdclass.util.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Classname OrderClient
 * @Description TODO
 * @Date 2022/5/13 17:51
 * @Created by sunhao
 */
@FeignClient(value = "xdclass-user-service")
public interface UserFeignClient {
  /**
   * 根据Id查询收货地址详情
   * @param addressId
   * @return
   */
  @GetMapping("/api/address/v1/find/{address_id}")
  JsonData addressDetail(@PathVariable(value = "address_id") Long addressId);
}
